namespace MsForgeReboot.Services.Migrations
{
    using System;
    using System.Data.Entity.Migrations;
    
    public partial class UsersToRolesToUsers : DbMigration
    {
        public override void Up()
        {
            //CreateTable(
            //    "dbo.webpages_UsersInRoles",
            //    c => new
            //        {
            //            RoleId = c.Int(nullable: false),
            //            UserId = c.Int(nullable: false),
            //        })
            //    .PrimaryKey(t => new { t.RoleId, t.UserId })
            //    .ForeignKey("dbo.webpages_Roles", t => t.RoleId, cascadeDelete: true)
            //    .ForeignKey("dbo.Users", t => t.UserId, cascadeDelete: true)
            //    .Index(t => t.RoleId)
            //    .Index(t => t.UserId);
            
        }
        
        public override void Down()
        {
            //DropIndex("dbo.webpages_UsersInRoles", new[] { "UserId" });
            //DropIndex("dbo.webpages_UsersInRoles", new[] { "RoleId" });
            //DropForeignKey("dbo.webpages_UsersInRoles", "UserId", "dbo.Users");
            //DropForeignKey("dbo.webpages_UsersInRoles", "RoleId", "dbo.webpages_Roles");
            //DropTable("dbo.webpages_UsersInRoles");
        }
    }
}
